Except that it's not for the "attention"-giver/harasser to decide whether their words or actions are welcome. That's for the recipient to decide.
Unless you're a mind reader (dressing as Professor X doesn't count), you don't know if a cosplaying woman wants to be photographed, touched, or spoken to in a sexual manner.…