Fix floating file chooser (#39154)

Closes #39117 

Some window managers (example: hyprland
https://github.com/hyprwm/Hyprland/issues/11229) still won't open a
floating file chooser because they don't support the XDG foreign
protocol yet: https://wayland.app/protocols/xdg-foreign-unstable-v2

Release Notes:

- Fixed file chooser not floating

---------

Co-authored-by: David Kleingeld <davidsk@zed.dev>
64eec67a81Alvaro Parker committed on 10/7/2025, 12:06:48 PM· committed by GitHubparentffff56f
7 files changedLine totals unavailable