That's how Stella Antics gets to look into your truck!!! OTOH it could be the sensor for automatic headlamp dimmer if you got one!!!
That pic was a clip from a video of a guy installing camera and using the power to the electrochromic mirror. It’s after the cover behind the mirror was removed from the inside of the windshield
That looks like a ceiling of any underground garage for a residential multistory building.