it sits in a big metal tray that's glued to the inside of the roof and spot welded around the sunroof hole.
May be possible to cut a slot in it the width of the car for the rollover hoop to fit in although you'd also have to cut through the tracks inside that the sunroof slides down as well as the workings that go inside it. Having said that, the front part of the cage might also be in the way of the sides of the tray around the sunroof hole.
Possibly turn into as much work as removing it.