I had a similar issue with screen scaling, EditorGUIUtility.pixelsPerPoint multiplier worked for me:
https://docs.unity3d.com/ScriptReference/EditorGUIUtility-pixelsPerPoint.html
I had a similar issue with screen scaling, EditorGUIUtility.pixelsPerPoint multiplier worked for me:
https://docs.unity3d.com/ScriptReference/EditorGUIUtility-pixelsPerPoint.html