Scroll bar in Touch Bar

Hi everyone,

I have been trying to create a scroll bar in the touch bar, much like the one you find in the Book app, for other apps such as the Preview app, or word processors app. Anyone has ever tried that or have suggestions to do it?

Tx!