If window is minimized on Win32, restore it before trying to focus