Considering the cultural significance of dreams in the ancient Near East, what specific function might be ascribed to the recurring dream motif in the Book of Daniel, especially in relation to the themes of divine sovereignty and the interpretation of historical events, given Daniel's unique position within the Babylonian and Persian courts?
Reference: Daniel 2:1-49, Daniel 4:1-37, Daniel 7:1-28