We can get rid of all the code that deals with windows. It isn't used as of now, and isn't going to remain in this file after the widget-manager is incorporated.