doubtful, it is done on CCTV cameras often having IR LED's flanking the sensor, but you have to be very careful that the light dont bleed over into the sensor ( from the front glass on the camera itself )
Putting it against a window are probably not a good idea, if any best chance would be on a side window literally flat up against the glass but thats too close to where the perp will operate.
This example is a cctv camera put in a windowsill, as you can see not of much use with most of the light reflecting into the camera, and what you can see outside in those 2 pictures are probably ambient light.
If there are no nearby bushes or trees to stick the camera in / under, it will be a problem.
There are also the more consumer oriented security cameras like Arlo / Blink ASO, which are battery powered, some of these have IR light for aid too, and i assume could be crammed into a tin or something that can be places on the ground, but then again that just give coverage of 1 side of the vehicle, and that creep could go anywhere.
Ditch the power adapter for one of these battery-powered security cams.
www.cnet.com