O Melancholy!—such thy magic power,That to the soul these dreams are often sweet,And soothe the pensive visionary mind! (12-14)
The speaker says that it's her melancholy mood that allows her to see these visions, and guess what? She actually likes it. What, haven't you ever listened to a sad song on repeat when you were having a crummy day?