Tracks whether the browser window currently has focus as a reactive Observable<boolean>. Updates automatically when the user switches tabs, clicks away, or returns to the window. SSR-safe: returns false when document is not available.
Exposes an Observable<boolean> that reflects whether the browser window
currently has focus. Initial value is synced from document.hasFocus() in
onMount to match SSR output and avoid hydration mismatch. Updates via
focus / blur events on window.