Preserve and restore focus across window activation cycles (#47044)

Closes https://github.com/zed-industries/zed/issues/46953

This turned out to be a pretty deep rabbit hole, ultimately landing in
how GPUI didn't restore focus nicely when swapping window activation
states.

Release Notes:

- N/A

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
4064af3458Mikayla Maki committed on 1/17/2026, 2:57:06 AM· committed by GitHubparentb8dfc31
3 files changedLine totals unavailable