Question: is it illegal to drive with your head out the window?
Answer: It can be a serious safety hazard. Ultimately, that is what matters most. So, even if there is not a law specifically saying you can't do so, sticking a body part outside of the window, at least excessively, could lead to the police pulling you over at least for safety concerns.