public static void ShowProgressEditor(Rect rect, ProgressDataControl progress) { var window = ProgressEditorWindow.Create(progress); rect.position = GUIUtility.GUIToScreenPoint(rect.position); window.ShowAsDropDown(rect, new Vector2(Mathf.Max(rect.width, 250), 300)); }