This version of Unity is unsupported.

EditorApplication.isFocused

public static bool isFocused;

Description

Whether the Editor is the focused window of the operating system. (Read Only)