Are you obligated to answer a knock?

If you are sleeping in your car (unseen), and someone knocks, are you obligated to answer?

EDIT: For clarity, let's say you're parked at night, at a 24 hour gym in your rotation. So you are not breaking any parking laws (I think, so probably no towing), and you and your car have no outstanding warrants.