Preferences window uses high CPU when moved around and odd tree view behavior

In Windows 10, dragging the preferences windows around the screen results in it moving slowly and one cpu core spikes to nearly 100%. With my minimal programming knowledge, it makes me think the contents of the window is repainted/refreshed with every pixel of movement or something like that. It behaves the same if opened from PCB Editor or from Bitmap To Component, so I don't think it's an interaction with the rendering in PCB Editor because Bitmap to component application is more barebones and behaves the same there.

A bit unrelated, the tree on the left side of the window doesn't work right. If you expand a section and then try to shrink it by clicking the [-] it doesn't work, if you're inside that section, because the application seems to want to jump to first option in that node and re-expand the section. If I click outside that section (on Common for example, first entry), I can then minimize any section without issue.

Steps to reproduce

  1. Open the preferences window and drag it around.

Notes... I do have two displays, one 1920x1200 and one 1920x1080, arranged horizontally, but I don't think it has to do with this.

KiCad Version

Application: KiCad PCB Editor x64 on x64

Version: 7.0.5, release build

Libraries:
	wxWidgets 3.2.2
	FreeType 2.12.1
	HarfBuzz 6.0.0
	FontConfig 2.14.1
	libcurl/7.88.1-DEV Schannel zlib/1.2.13

Platform: Windows 10 (build 19045), 64-bit edition, 64 bit, Little endian, wxMSW

Build Info:
	Date: May 27 2023 02:48:13
	wxWidgets: 3.2.2 (wchar_t,wx containers)
	Boost: 1.81.0
	OCC: 7.6.3
	Curl: 7.88.1-DEV
	ngspice: 40
	Compiler: Visual C++ 1936 without C++ ABI

Build settings:
	KICAD_SPICE=ON
Edited by KiCad Bot