pub fn init_for_tests() -> MainThreadMarker
Prepares AppKit for tests: no Dock icon, no menu bar takeover.