For example, graying out the "X" on windows systems.
Just call the set_deletable with False on the window in question. It will work as long as GTK can convince the window manager to make the window unclosable.
In GTK, how do I make a window unable to be closed?