The Zohar HaKadosh (vo.2, 2b) elaborates that Yechezkel HaNavi saw a prophecy, specifically in Bavel, to offer chizuk to the Jewish nation. They shouldn't think that Hashem abandoned them when they were sent into exile. As it states (Yeshayah 43:14) בָבֶלָה שִׁלַּחְתִּי לְמַע ַנְכֶם, "Because of you, I was sent to Bavel." This means that Hashem went to galus, along with the Jewish nation. The Beis Yisrael zt'l explains that Yaakov Avinu's dream served a similar purpose. Yaakov was leaving Eretz Yisrael and going to Charan, and Hashem wanted him to know that He will be there together with Yaakov Avinu.
On the words (28:12) ָּׁמ ָיְמָההַש מַגִּיעַ וְרֹאשׁוֹ א ַרְצָה מ ֻצָּב ס ֻלָּם וְה ִנֵּה, "A ladder set up on the ground and its top reached to heaven." The Baal HaTurim writes, "This is a hint that someone who was cast to the ground for a moment will be lifted up to heaven."