public bool hasFocus ;

Description

Returns true if EditorWindow is focused.