### Godot version

4.0 beta 15

### System information

Window 10

### Issue description


![image](https://user-images.githubusercontent.com/186786/214567744-630b15d3-e59a-4143-b42b-4cdd852c0ce3.png)

If you're using Google IME, the IME is located in the lower left corner of the window. (MS-IME was the correct placement)
I also tried with Beta14 and the Google IME was positioned correctly. In other words, it's a bug that's happening in Beta15.
The same applies to input fields such as search boxes.

**↓Beta14**

![image](https://user-images.githubusercontent.com/186786/214567843-defb21cb-aff8-4cf9-b4ca-f53368f5f553.png)


### Steps to reproduce

The situation is the same for all places where characters can be entered.
![image](https://user-images.githubusercontent.com/186786/214568357-97c8a8de-ce49-463c-87c8-86fbdfaa254a.png)


### Minimal reproduction project

It doesn't depend on the project and happens when using Google IME in the beta 15 editor.
mb->set_global_position(mb->get_position());
			Input::get_singleton()->parse_input_event(mb);
			if (mb->is_pressed() && mb->get_button_index() >= MouseButton::WHEEL_UP && mb->get_button_index() <= MouseButton::WHEEL_RIGHT) {
				
				Ref<InputEventMouseButton> mbd = mb->duplicate();
				mbd->set_window_id(window_id);
				last_button_state.clear_flag(mouse_button_to_mask(mbd->get_button_index()));
				mbd->set_button_mask(last_button_state);
				mbd->set_pressed(false);
				Input::get_singleton()->parse_input_event(mbd);
			}
		} break;
		case WM_WINDOWPOSCHANGED: {
			Rect2i window_client_rect;
			Rect2i window_rect;
			{
				RECT rect;
				GetClientRect(hWnd, &rect);
				ClientToScreen(hWnd, (POINT *)&rect.left);
				ClientToScreen(hWnd, (POINT *)&rect.right);
				window_client_rect = Rect2i(rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top);
				window_client_rect.position -= _get_screens_origin();
				RECT wrect;
				GetWindowRect(hWnd, &wrect);
				window_rect = Rect2i(wrect.left, wrect.top, wrect.right - wrect.left, wrect.bottom - wrect.top);
				window_rect.position -= _get_screens_origin();
			}
			WINDOWPOS *window_pos_params = (WINDOWPOS *)lParam;
			WindowData &window = windows[window_id];
			bool rect_changed = false;