New WindowEvent class, which registers mousefocus, inputfocus and restore/minimize.