public static void BeginOffsetArea(Rect screenRect, GUIContent content, GUIStyle style)
{
GUILayoutGroup guiLayoutGroup = EditorGUILayoutUtilityInternal.BeginLayoutArea(style, typeof(GUILayoutGroup));
if (Event.current.type == EventType.Layout)
{
guiLayoutGroup.resetCoords = false;
guiLayoutGroup.minWidth = guiLayoutGroup.maxWidth = screenRect.width + 1f;
guiLayoutGroup.minHeight = guiLayoutGroup.maxHeight = screenRect.height + 2f;
guiLayoutGroup.rect = Rect.MinMaxRect(-1f, -1f, guiLayoutGroup.rect.xMax, guiLayoutGroup.rect.yMax - 10f);
}
GUI.BeginGroup(screenRect, content, style);
}