Hanging curtain rods - metal stud above window?
If you are only 1/2&quot; above the opening and there is a drywall return, you are probably detecting a drywall corner bead:

It is ok to drill a pilot hole through it and send a screw right through into the wood framework.