Returns bool - Whether window is focused.
bool
@platforms macos,windows
Future<bool> isFocused() async { return _target?.isFocused ?? false; }