The Gemara in Rosh Hashanah 17b says:
ויעבור ה' על פניו ויקרא א"ר יוחנן אלמלא מקרא כתוב אי אפשר לאומרו מלמד שנתעטף הקב"ה כשליח צבור והראה לו למשה סדר תפלה אמר לו כל זמן שישראל חוטאין יעשו לפני כסדר הזה ואני מוחל להם
[The verse states:] “And the Lord passed by before him, and proclaimed” (Exodus 34:6). Rabbi Yoḥanan said: Were it not [explicitly] written in the verse, it would be impossible to say this, [as it would be insulting to God’s honor. The verse] teaches that the Holy One, Blessed be He, wrapped Himself [in a prayer shawl] like a prayer leader and showed Moses [the structure of the] order of [the] prayer. He said to him: Whenever the Jewish people sin, let them act before Me in accordance with this order. [Let the prayer leader wrap himself in a prayer shawl and publicly recite the thirteen attributes of mercy,] and I will forgive them. (Sefaria translation, with commentary by R. Adin Steinsaltz)
Assuming this is an allegory, what are the explanations of Chazal and the commentators on the reference to Hashem wrapping Himself in a tallit?