Support devices with DPI != 96

WPF uses its own unit, i.e. 1/96 inches, as pseudopixel, while win32 uses physical pixels.
This pull request fixes wrong behavior on devices with high dpi devices, like full-hd tablets.