How to make a field inside the canvas that can be moved? [closed]

I want to make something like draw.io using blazor. How would it be possible to make a field like in draw.io that moves by pressing the mouse wheel?

At the moment I have implemented the functionality of the application without a moving field using canvas tools. Now I am looking for information on how to implement this idea without using mxGraph from draw.io.