Something was rattling over my head so I pulled the door rubber away enough to free the headlining and found this white plastic block. Keys are in the pic to give an idea of the size.
I assume it is part of the sun roof mechanism. I haven't tried to open it yet in case the roof jams open.