If you hang out in a particular place or area, you go and stay there for no particular reason, or spend a lot of time there. [mainly US, informal]
I often used to hang out in supermarkets. [VERB PARTICLE adverb/preposition]
We can just hang out and have a good time. [VERB PARTICLE]