It's time we reverted it.
About 10% of humans have been addicts across most cultures throughout most of recorded human history, and they desperately need help (even if they claim don't want it).
There should obviously be a ton of safeguards in place before committing someone against their will (e.g. 1 or 2 doctors should declare that the patient is unable to care for themselves and make rational decisions, assessment at regular intervals, ensuring the patient has the right to get a new doctor, etc.), but I don't think we'll be able to solve homelessness without it, because this is what we used to do differently prior to the homelessness epidemic, and this is what other nations have been doing.
[1] https://en.m.wikipedia.org/wiki/Lanterman%E2%80%93Petris%E2%...