Create a temporary hidden window to get the current desktop resolution

r_mode -2 won't work otherwise