Islam views man and women as naturally created to procreate and spread and the only way you can per Islam is by getting married and then having children and if you cannot have children then it's unfortunate but the focus should turn on extra loving between the couples as they cannot bear children.
Islam also views that naturally a man has an organ which fits into a female organ whose primary purpose besides peeing is a way to procreate, you know like a female and male connector in electronics, a logical connection
While islam does say that due to homosexuals not being able to procreate and as opposed to above, it views the act of homosexuality as Un natural thus if the end is just for sexual pleasure and never for bearing children through sex, then it views it as wrong, if a homosexual has a predisposition to be homosexual then it is likely something he or she cannot control due to their predisposition and thus you cannot hurt or harm homosexuals or be prejudiced against or act or take actions which harm or hurt homosexuals due to islams willingness to be kind to everyone. Just don't perform homosexual acts in public as that equates to adultery sex in public