Scales a target <canvas> drawing context according to the device's pixelRatio.