More work on the new experimental window management system.

The emphasis here is the Windows build. The Linux build is broken with
this commit.