Add GetDPIScaleFactor() to wxDC and wxGraphicsContext to allow scaling the coordinates and sizes depending on the DPI. See #22314.