If harm to society is your main concern, then legalizing opiates is the solution. It will reduce the addict need to steal/prostitute to support their habit. If they have a low cost supply, they pretty much normal and go about their business like everyone else.
btw, opiates are very boring...