I had a Skoda Superb (officially you cannot make jokes about them anymore) and the sunroof incorporated a solar panel that would keep the A/C working on a hot day whilst the car was parked. It was great coming up from the beach and whilst other people opened their car doors and stood outside whilst the hot air escaped I would just get into a cool car. (not that type of cool, they weren't cool then.)
Now that really is a Superb feature
Sorry couldn't resist.
But seriously sounds really good. So it is possible then, and I assume it was effective enough? So could easily be put into one of these modern electric cars IMO.