It would be useful if a list of all open documents could be returned. This has to be possible as they are all listed under the Window menu.