Make engine::gui::Window compatible with the new event system