ENH: Query system for DPI

Currently only works on Windows (might work on Linux but is untested), but I think it should be possible to query this information on other OSes as well. Working on those next.