How to create glass material that refracts elements in DOM?

had some time to make it

now, if you wanted the selection behind the model, like in the original, that would be pretty easy, too, the html would have to be behind the canvas, but im using postprocessing (AO and tilt shift) which requires an opaque canvas.