Thanks for your bug report. The reason for this is that the switches for /window were added over a very long time and each switch fulfilled a specific purpose at the time it was added. These behaviours cannot be changed now. /window -h permanently removes a window from the treebar. Newer switches were added later on, eg. -wN, that allow you to change where a window appears. You will need to use -wN for this purpose if you want to restore it to the treebar.