This would be really hard to go somewhere, people still remember being confined in mental facilities for being the gay. Unfortunately, we have a very ugly past with forced confinement. A possible solution is for the judge to appoint a lawyer for the mentally ill person. An advocate with no familial ties and maybe a background in mental health could be the solution.