Does anyone know how to click and drag on a grid

ok let me explain, im trying to create a mario maker fan game and im trying to make it to where I can select a thing from the menu and place it in a grid. does anyone know how to do this?

Like this?


thank you! I had to modify it for it to work the way I wanted it to