NewShapeWindow is finished. But there is a lot of room for improvements.