This isn’t really on the same level, but I always try to let people in a professional setting know about my chronic tic disorder. Especially in my placements as a student teacher in schools, because I don’t want the instructor to think I’m causing a distraction on purpose. I got into the habit of doing that back when my tic was a dab, and while I think it’s less noticeable now and rarely happens, I still think it’s important for me to let it be known.
As for hidden disabilities in general, I don’t think people should have any requirement to go around telling people about their disability if they aren’t comfortable. Part of me thinks people should in a situation where it may be relevant, like NintendoCN described, but even then, I think that’s up to the person to decide if they want to share.