get the main window, not the key window