pub fn register_window(window: Rc<dyn WindowPortsMethods>)