How does medication like Clonidine reduce the effects of Heroin withdrawal (mainly chills and anxiety?)

https://en.wikipedia.org/wiki/Clonidine