How to Make Invisible Refractive Material?

I’m trying to render a mesh inside of glass only. So basically the object inside the glass is refracted, but the glass is invisible to the camera. I’ve tried Light Path and Compositing tricks but nothing seems to work except “Shadow Catcher” sort of in a weird way. I’ve supplied pictures to demonstrate what I mean and need.