Otherwise the window will have a maximized size but not maximized state after toggling it from system tray
Create a WindowController test suite. Also make sure that the class handles m_window being nullptr.