gpui: Fix `snap_to_window_with_margin` when window has client inset (#27330)

Release Notes:

- Fixed popup menu snap to window to leave margin on Linux.

This change to continue #17159 to fix same thing on Linux.

| Before | After |
| -- | -- |
| ![Pasted
image](https://github.com/user-attachments/assets/3129d42c-7253-4a3f-a428-86e2a3df38ff)
|
![image](https://github.com/user-attachments/assets/8dc83377-9df7-45ba-805b-1cfdea612ae0)
|
d0f806456cJason Lee committed on 4/15/2025, 4:47:00 PM· committed by GitHubparentb6cce1e
2 files changedLine totals unavailable