those are probably spirits who still want to stay on earth even if they don't have a body anymore that's why they dwell on structures. i don't get nick's explanation, too, i even thought it was only applicable to his own self coz he doesn't want to move on. it was his choice to be like that. other dead people (esp. the ones harry would like to see) wants to go on with their after life.