Junkies who commit crime should be in the justice system, its then up to their lawyer wether to try and get them a hospital place on grounds of diminished responsibility rather than a prison place.
I personally agree that a hospital is a more suitable place than a prison for such people IMHO