Not to mention that WinUI is not supported on Windows Server. Therefore, if you need to deploy to server and desktop environments, it's better to stay with WinApi (WinForms) or WPF.
WinForms is very old and doesn't do DPI, but one thing I like about it is that it always works.