Displays draw2d graphics in a window.