Can't we have something like a global reference to the AppWindow instance? 
Like Qt does it with qApp and QCoreApplication?