I guess the theme of this topic is weird sexual stuff that happened during the era of the comics code.

Not because of the Comics Code, but in spite of the comics code. Just during the era of the Comics Code.

Then there is determining what are the parameters of "during the Comics Code".
Looking at my complete E.C. Library collection, the Comics Code stamp began appearing with the August 1955 cover of INCREDIBLE SCIENCE FICTION 31. And the end-date, well... I looked at BATMAN covers, and the Comics Code stamp remained on the covers until BATMAN 705 (Feb 2011) !
Although I'd argue that the relevance and influence of the code has been insignificant since the mid or late 1980's. The last book where I'm aware the Comics Code was even a consideration was DAREDEVIL 167 in late 1980 ("Child's Play" by Roger McKenzie and Miller/Janson) when the story was with-held and another ran in its place. But it was expanded to a 2-issue story and ran in 1982 in DAREDEVIL 183 and 184, at which point the Comics Code became completely irrelevant, whether stamped on the cover or not from that point forward.


I think one of the weirdest for me was in the 1983-to-1986 run of Byrne's ALPHA FLIGHT, where Aurora and Northstar, brother and sister, had an incestuous relationship. And Northstar I believe beyond that is credited to be the first overtly gay character in comics. But what a twisted gay character.
Another gay supporting character from the same years was in the latter half of Grell's JON SABLE FREELANCE (roughly issues 20 to 40), a much happier and less tormented gay character.