Move window state change handling to PlatformWindow.

This patch adds basic support in PlatformWindow to handle
FullScreen, Minimize, Maximize and Restore. We move the related code
from DRWH to PlatformWindow.