Repository: godotengine/godot (language: cpp)

Issue:
Embedded game does not respect focus border
### Tested versions

Reproductible on Godot v4.4.dev (0454122b3)

### System information

Godot v4.4.dev (0454122b3) - Windows 11 (build 22631) - Multi-window, 2 monitors - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3060 (NVIDIA; 32.0.15.6636) - 11th Gen Intel(R) Core(TM) i5-11600KF @ 3.90GHz (12 threads)

### Issue description

After installing the version 2 of Passivestar theme from https://github.com/passivestar/godot-minimal-theme?tab=readme-ov-file, the selection border around the embedded game is now displayed under and game:

With the theme:
![Image](https://github.com/user-attachments/assets/52e408fe-69ad-47b5-8045-ca0b9cf8c909)

Without the theme:
![Image](https://github.com/user-attachments/assets/503b982a-b7a5-4c8b-964c-857aa0dedb2d)


### Steps to reproduce

- Install the theme: https://github.com/passivestar/godot-minimal-theme?tab=readme-ov-file
- Restart Godot
- Start game with embedding on

### Minimal reproduction project (MRP)

Any project


Discussion / hints:

Fix patch:
diff --git a/editor/plugins/embedded_process.cpp b/editor/plugins/embedded_process.cpp
index 03c2f2067e9c..75e532513464 100644
--- a/editor/plugins/embedded_process.cpp
+++ b/editor/plugins/embedded_process.cpp
@@ -66,8 +66,8 @@ void EmbeddedProcess::_notification(int p_what) {
 			focus_style_box = get_theme_stylebox(SNAME("FocusViewport"), EditorStringName(EditorStyles));
 			Ref<StyleBoxFlat> focus_style_box_flat = focus_style_box;
 			if (focus_style_box_flat.is_valid()) {
-				margin_top_left = Point2i(focus_style_box_flat->get_corner_radius(CORNER_TOP_LEFT), focus_style_box_flat->get_corner_radius(CORNER_TOP_LEFT));
-				margin_bottom_right = Point2i(focus_style_box_flat->get_corner_radius(CORNER_BOTTOM_RIGHT), focus_style_box_flat->get_corner_radius(CORNER_BOTTOM_RIGHT));
+				margin_top_left = Point2i(focus_style_box_flat->get_border_width(SIDE_LEFT), focus_style_box_flat->get_border_width(SIDE_TOP));
+				margin_bottom_right = Point2i(focus_style_box_flat->get_border_width(SIDE_RIGHT), focus_style_box_flat->get_border_width(SIDE_BOTTOM));
 			} else if (focus_style_box.is_valid()) {
 				margin_top_left = Point2i(focus_style_box->get_margin(SIDE_LEFT), focus_style_box->get_margin(SIDE_TOP));
 				margin_bottom_right = Point2i(focus_style_box->get_margin(SIDE_RIGHT), focus_style_box->get_margin(SIDE_BOTTOM));


Test patch: