getting inspectors width

How do I get the current inspectors width so my EditorGUI adjusts to it.

This should do the job for you: EditorGUIUtility.LookLikeInspector() and EditorGUIUtility.LookLikeControls().