[SDL2] Use SDL API to access the properties of SDL_Window.

And do not try to access its fields directly…

It was the last SDL related change \o/ (for the compilation).