Implement more of the window API