Handle window resize events in the SDL 2 way