How do I use GUI.BeginCLip() ? There is no documentation on docs.Unity

I am trying to create an area in my editor window where I can pan everything in that area.
GUI.BeginClip has two overrides .

GUI.BeginClip(Rect position)

GUI.BeginCLip(Rect position,Vector2 scrollOffset, Vector2 renderOffset, boolresetOffset )

I don’t know how to go about using this because there is no documentation on how to use it.

How do I use this ?

public static void BeginClip(Rect position, Vector2 scrollOffset, Vector2 renderOffset, bool resetOffset)
{
GUIUtility.CheckOnGUI();
GUIClip.Push(position, scrollOffset, renderOffset, resetOffset);
}

	public static void EndClip()
	{
		GUIUtility.CheckOnGUI();
		GUIClip.Pop();
	}

Almost like BeginGroup().

Does anyone know the difference?