Grab the correct Window handle, so native events still work when
in forceShellWindowsAPI mode.