EditorGUIUtility-currentViewWidth - Unity スクリプトリファレンス
The width of the GUI area for the current EditorWindow or other view. This Property should only be accessed within an OnGUI call.