Seems like the driver tried to pass below something without the adequate clearance and hit. Definitely not be covered under warranty IMO.Best bet an insurance compensation without any deductable amount for such a damage!
This was most likely caused by a bird, specifically a crow. Look it up on Google, crows are known to damage sunroof seals, particularly those surrounding highly reflective glass roofs. The damage looks just like that in your photos (I have seen it in the past) when it starts. Unfortunately, once they get a taste for it, crows often come back and add to the damage. I live in a rural part of the UK where there are a lot of crows and, for cars that will be kept outdoors, never order sunroofs for this reason.
The damage in your photo is to the outer seal and, therefore, will not allow water into your car. If I were you, I would leave it alone and see if the bird returns before spending money on replacing the damaged seal. Replacement is not difficult, but Porsche parts and labour costs make it a little expensive.