That makes absolutely no sense. If you have real life issues, being high on heroin doesn't make you have to deal with them any less. You could sit in front of the computer sober and ignore the real issues just as easily. You're spouting cliches.
It's not that you don't have to deal with them, it's that you don't care that you aren't dealing with them. Ignoring your issues either way comes to bite you in the ass eventually, but doing it sober means you feel terrible, anxious, and guilty until that day. Dope lets you ignore your problems without taking responsibility for ignoring your problems.
I'm not saying it's an intelligent thing to do, it's selfish, immature, and ultimately pointless, but it absolutely does happen, as cliche as it may sound
EDIT: Using heroin is absolutely social, but only when you're doing it with people. When you're doing it alone in your apartment, clearly there's something else going on.