Clean up PTYWindow
Hide hotkey window when no iterm window is main or when another terminal window becomes key. This allows things like clipboard managers (which don't affect the main window) to not dismiss the hotkey window, but switching terminals or going to another app will hide it. Also fix a bug where the menu bar wasn't hidden when toggling a fullscreen hotkey window.