Added resize event to Window class.