Another use for secondary drain

Looking around the outside of the house for the condensate line from the attic drain pan, and I found it over the rear bedroom window. Unfortunately, some idiot used it for the pool equipment electrical.
I have no idea what they did with the end of the drain in the attic, but none of the options are good.

And just when you think you’ve seen everything.