Good question. Google Tag Manager is about improving marketing and tracking tag/pixel performance. These scripts shouldn't do document.write too much.
We don't recommend putting tags in Google Tag Manager that manipulate on-screen elements due to the asynchronous behaviour.