Shaving drip rails

I wondering about structural stability.
Where exactly is the roof panel attached to on the inner structure after the driprails are ground down?
Without having ever seen these parts apart I would think the driprails function as weld area for the roofpanel and inner side structures.