Maya - Dockable windows boilerplate
So, here's an update boilerplate. Details in comments.
This one is working in Maya 2016, 2017, 2018, should work in previous versions down to 2014. Still going to test it thoroughly in all versions.
Turns out I was just not calling
works properly in older and newer versions of Maya, my bad. I will likely be updating this gist as time goes.