しまる is an instantaneous verb. Whether transitive or intransitive, ~ている form of instantaneous verbs expresses the current state that results from prior movements. For instance, 死んでいる means "Someone is dead (Someone died in the past and his/her current state is dead)". Whereas the dictionary form expresses the present habit or the future tense.
毎日午後九時に窓が閉まる。
まいにち ごご くじ に まど が しまる。
The window closes everyday at 9 PM.
明日の朝、窓が閉まる。
あす の あさ、まど が しまる。
The window will close tomorrow morning.
窓が閉まっている。
まど が しまっている。
The window is closed. (The window closed in the past and the current state of the window is "closed".)