From my experience this is wrong. If you set a transparent background in wxwidgets/gtk it will show you a grey background. And gtk3 even removed the ability to query the x background pixmap. So if there is better support for this at an X level, this is not available above.
See https://github.com/onli/simdock/issues/11, and if there really are good alternative solutions I'd be happy for some help.