Are you looking for a scripted /command solution or the ability to literally "drag and drop" buttons with your mouse? (or both?)

You can currently set window order with Window -> Order... but drag&drop support would be a far more intuitive solution.