1965 Dartcharger

Any idea what that foam is for? I was wondering about that when I took my '66 apart.
My guess would be to seal the end of the inner roof rail moulding against noice and eventually water.