Set window.devicePixelRatio, returning a restore closure.
window.devicePixelRatio
the DPR the display should report
a function that puts the original value back
Set
window.devicePixelRatio, returning a restore closure.