Generate bindings for Window

This one also looks larger than necessary because GetParentObject needed to be changed to return an Option.