Version: 2021.1
public bool hasFocus ;

説明

Returns true if EditorWindow is focused.