Only main window supported for now. TODO: Also support data editor, output, and object viewer windows.