Consent is not an issue here. Two adults can consent to have sex in the workplace and, as a result, cause a third coworker psychological harm.
In other words, two consenting adults can create a toxic work environment, which is why sex in the office is pretty much verboten.