create_window now returns a pointer