Why? That’s like inviting your gay cousin, but telling them not to hold hands with their “friend” Steve because they might upset Aunt Edna. People are who they are. Some people are shitty.
This presumes homosexuality is a choice, like racism, which it almost certainly is not.
Racism is an insidious ideology which should be fought at every turn. It’s not enough to just ask your guests to pipe down about it in front of the kids.