As has been mentioned, you would usually attach a curtain track to the wall, rather than the ceiling.
However in some cases (as in my home), there was no space between uPVC window frames and the ceiling to achieve this, leaving the ceiling as the only viable option.
One thing that you...