On several occasions throughout history, dreams have been credited as the inspiration for creative works and scientific discoveries.