The argument is that public drug use is a harm to others. I don't see how shooting up on the street has anything to do with being trans. One is a public health hazard, the other is a personal choice.
Yes there exists discrimination against trans people. That's an entirely separate issue that is not helpful to discuss with the original topic. We should be able to decide if we want second hand smoke, dirty needles, strung out people... in public without poisoning the debate well by bringing in non-related issues.