In literary analysis, heaven peeping through the blanket of the dark can have two interpretations for this.
1. Shakspeare must have wanted to visualize the glimpse of sunlight during the storm in a creative sense; or
2. He wanted to emphasize that in the times of struggles, heartaches, and trials there is still a hope inside us, hope that we need to seek.