PlatformWindow: Add needed support in PlatformWindow.

This patch adds necessary API support in PlatformWindow. The changes
need to be evaluated further before trying to upstream them.
Merge pull request #219 from qjia7/platform_window

PlatformWindow: Add needed support in PlatformWindow.