How to get the main window of the editor, to parent Qt or PySide application to it?

This is really great and useful info – thanks for posting it so everyone can see!