Under California PC647(i),
Except as provided in paragraph (5) of subdivision (b) and subdivision (l), every person who commits any of the following acts is guilty of disorderly conduct, a misdemeanor:
...
(i) Who, while loitering, prowling, or wandering upon the private property of another, at any time, peeks in the door or window of any inhabited building or structure, without visible or lawful business with the owner or occupant.
The language in this section suggests the space must be occupied at the time the act is done, because of the term "inhabited." Is this a valid interpretation or can "inhabited" simply mean "owned/rented", e.g. it may be that the occupant has gone to the market but does currently live there.