They're the same shatter-proof glass as a windscreen, and the roof panel itself isn't part of the crash structure of the car. If you look at the frames of most cars, like this Honda, you'll see minimal bracing across cross the roof. Teslas have a lot of problems, but they do well in crash tests