This version of Unity is unsupported.

EditorGUIUtility.currentViewWidth

public static float currentViewWidth;

Description

The width of the GUI area for the current EditorWindow or other view. This Property should only be accessed within an OnGUI call.