[This is preliminary documentation and subject to change.]
The Snapshot utility (Snapshot.exe) enables you to pick a top-level window, and then dumps recursively in outline fashion all the accessible objects within that window. It has an option to skip invisible objects. It will also enable you to save the outline to a file in text format, with tabs used for indenting.