The rope trick spell description says:
You touch a length of rope that is up to 60 feet long. One end of the rope then rises into the air until the whole rope hangs perpendicular to the ground. At the upper end of the rope, an invisible entrance opens
Can you cast rope trick while you are mid-air, and have the rope hang vertically in the air with the entrance opening at the upper end?
This is not about trying to cast rope trick upside down, or in any other orientation. The question is if you can cast it while you are flying or hovering in the air. The reason I'm unsure about this is that the spell description says the rope "rises into the air" (which might imply you are not "in the air"), and it mentions that it hangs perpendicular to "the ground".