HPS: How to create buttons/operators using subwindows

In our forum post, we have sample code on how to create buttons using HPS API.