I don't know that "reparative therapy" always works after a problem is out of control, but I am quite comfortable with attentive parenting, which does work. The first time one of my kids decided to be a dog longer than the normal playtime, in a manner that interfered with the next family activity, I put a decisive end to the game, and my child cooperated completely. It became "ice cream time" for the other kids, but dogs don't eat ice cream, they get a bowl of water. Doggie time died immediately. If one of my boys had wanted to wear a dress, I would have dropped whatever else was planned to lead the kids on an expedition following the creak to look at salamanders, tadpoles, and bugs (we did that often), or to climb one of our trees, or to make bread by hand (too messy for frills), or something, anything where a dress would NOT have been appropriate or even practical to join in. I don't think that would stifle whatever it is that makes kids gay, but cross dressing would be no fun at all if it got in the way of playtime. I imagine after freely choosing a couple times not to engage in that behavior, a boy would decide that wearing dresses did not make life more fun or draw more attention. Also, I normally do a lot with my kids, so they would not decided that threatening to dress up was a way to get my attention, it would just determine the type of attention they would get.
As for the kilt discussion, I've spent quite a bit of time in Scotland. Insulting a man in a kilt is not high on my list of things to try. The perverts would never wear a kilt because it is decidedly male and the whole point of being a transvestite is to wear something decidedly female, and those who would wear a kilt are 100% male, and usually tough.
I think that’s a really good way of dealing with it. Outright punishment or berating only makes the problem worse but that sly, gentle forcing them into the correct gender role is pretty intelligent.
I’m betting you’re a great parent.
That's why they call them commandos.