Window-shop is a verb tense. You can say I am window-shopping, I window-shopped yesterday. In window shop (without the hyphen) you're describing a type of shop...a shop that sells windows. (Window is being used as an adjective. telling what kind of shop.)