fix(windows): dpi getter leaks `HDC` handles (#15614)