Not sure if this is easily doable in GTK2. However, I recently found out that there is a GtkLayout widget that allows you to pixelize widgets, so you can even display some widgets over others. Or you can implement your own container widget.
Note that with GTK3 there is GtkOverlay, which seems to do what you want.
You can also take a look at Clutter, which may allow this. In addition, there are GTK and Clutter merger projects for GTK 4.
source share