Added redraw and resize events to Window class