foreignSurface method
The window in front of the app when it belongs to someone else (a system picker, another app); null when the app is in front or this platform cannot tell.
Implementation
@override
Future<String?> foreignSurface() async {
final app = appPackage;
lastFocusUnknown = app == null;
if (app == null) return null;
final c = await focusedComponent();
lastFocusUnknown = c == null;
if (c == null || c.startsWith('$app/')) return null;
return c;
}