"The" is fine. However, you do not need to repeat the fact that the rod is above the window: I would phrase this as: The long curtain hangs from a rod above the top of the window.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.