internal static Rect GetMainWindowCenteredPosition(Vector2 size)
        {
            var mainWindowRect = EditorGUIUtility.GetMainWindowPosition();

            return(EditorGUIUtility.GetCenteredWindowPosition(mainWindowRect, size));
        }