Only show pinned dock applications on selected monitors

I would like the pinned applications to show only on selected monitors. For example, I would like them only to show on my primary monitor, and for the dock to show only applications open on the other monitors on the respective monitor, without the pinned applications.