Is there a way to fix (make proper alignment) close button position on tool windows style window? This style of window appears in different type of application for music production (Ableton, Reaper, etc) and graphic design.

Here the test application build in Visual Studio with tool window style for dialog window with standard Windows 10 theme: