### Godot version

v4.0.3.stable.official [5222a99f5]

### System information

windows 10 v4.0.3.stable.official [5222a99f5] - Compatibility

### Issue description

When renaming a node, Microsoft Pinyin input method cannot be switched to Chinese.
But nodes can actually be named in Chinese. We can only do this by copying strings from Notepad and pasting them into the renamed text box.
(It's worth noting that I used Shift to switch between Microsoft Pinyin and English.)

### Steps to reproduce

Rename a node

### Minimal reproduction project

none
_THREAD_SAFE_METHOD_
	Ref<FileAccess> f = FileAccess::open(p_filename, FileAccess::READ);
	ERR_FAIL_COND_MSG(f.is_null(), "Cannot open file with icon '" + p_filename + "'.");
	ICONDIR *icon_dir = (ICONDIR *)memalloc(sizeof(ICONDIR));
	int pos = 0;
	icon_dir->idReserved = f->get_32();
	pos += sizeof(WORD);
	f->seek(pos);
	icon_dir->idType = f->get_32();
	pos += sizeof(WORD);
	f->seek(pos);
	ERR_FAIL_COND_MSG(icon_dir->idType != 1, "Invalid icon file format!");
	icon_dir->idCount = f->get_32();
	pos += sizeof(WORD);
	f->seek(pos);
	icon_dir = (ICONDIR *)memrealloc(icon_dir, sizeof(ICONDIR) - sizeof(ICONDIRENTRY) + icon_dir->idCount * sizeof(ICONDIRENTRY));
	f->get_buffer((uint8_t *)&icon_dir->idEntries[0], icon_dir->idCount * sizeof(ICONDIRENTRY));
	int small_icon_index = -1; 
	int small_icon_cc = 0;
	int big_icon_index = -1; 
	int big_icon_width = 16;
	int big_icon_cc = 0;
	for (int i = 0; i < icon_dir->idCount; i++) {
		int colors = (icon_dir->idEntries[i].bColorCount == 0) ? 32768 : icon_dir->idEntries[i].bColorCount;
		int width = (icon_dir->idEntries[i].bWidth == 0) ? 256 : icon_dir->idEntries[i].bWidth;
		if (width == 16) {
			if (colors >= small_icon_cc) {
				small_icon_index = i;
				small_icon_cc = colors;
			}