Two ways at least
I wish i had not seen this so often as a pathologist.
Breathing may simply stop as a result of the drug. Or for some reason that we've not been able to figure out, the air spaces of the lungs suddenly fill with fluid. Foam gushes from the mouth and the user dies. I give families the comfort that witnesses to this event say it seems that the person does not suffer -- but who knows for sure?