I use a wacom intuos 5 on a macbook pro with OSX sierra.
I have middleclick mapped to a wacom pen button, It worked most of the time but some times the window just slips back to the background when im panning in the window when its in the on-top mode.