I have been detained under various mental health acts in more than one country. I don't recommend it. It feels like you have fewer rights than a criminal in such circumstances, and the 'danger to onesself or others' criterion is rather subjective.
On the plus side, you get to meet some truly fascinating people (both patients and nurses).
Luckily, the last time was several years ago. And frankly, it would take something far worse than that to stop me travelling.