Top level windows

Is there a way to get a list of all top level windows there are in the
application?

I couldn't find such a function available, but perhaps I missed it? If
there is no such function, how do I easiest create such a function myself?

/Ragnar Ouchterlony