Many slightly older cars (2000-2020) had antennas embedded in glass. The idea is solid. Antennas in glass are protected, so they can be very thin and almost invisible, more aesthetically pleasing than a shark fin or a rod on the roof.
I would consider this an aesthetic choice, not so much engineering. A small antenna sticking out on the roof solves the engineering problem adequately.