Dreams draw mostly from your own memories, but it’s still entirely possible for completely new things to arise within them. I once had a dream where I fought my way through a hoard of undead dinosaurs using a pair of antique pistols in order to escape a vacuum-sealed mine.
I only wish I knew what part of my mind that one came from.
Edit: And I would like to polite deny the assertion that dreams can predict the future.