Somehow the proposed origin above of the word doesn't make sense to me. Jealousy might make someone want to peek in windows if they could do so without being seen, not the reverse.

Perhaps this is in the sense of keeping something jealously guarded, or secret.