Check if our main window is our application window within Application's event handling functions.