Another way to obtain HasFocus

Hi

Rhino.UI.RhinoEtoApp.MainWindow.HasFocus

In previous versions I don’t find this instruction.
Is there another way to get this?

From which version was this implemented?