Sounds more dangerous than illegal. I wouldn't do it regardless. What if some sh*t falls from in front of you onto your engine bay? Ka-boom! Your engine gets facked up and you die. So probably go find a hood.
Disregard me, I think I didn't make sense there.