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.

It does, one has to cut then off, grind down a small area at a time and weld the area, then smooth it up.