There's no inherent connection. Being comic refers to having a sense of humor or a comical nature, which has nothing to do with being gay. One's orientation is a separate aspect of their identity.
Dazai is not based on a true story. Usually, characters like Dazai are formed through the author's imagination and artistic expression to create an engaging narrative for the readers.