Use UpdateRunLoop to handle input and detect minimized window for all platforms.