I need to create a house, such as a structure, where the user can add windows to the wall. The approach that I think of is to first create a separate grid for the window, which the user can drag over the selected wall of the home grid, and falls where they find it suitable, but inside the same wall or the same side at home. After that, I will create the whole scene again, but I will draw a window in the wall of the home grid, and not create a separate window grid.
Below is what the window mesh will look like over the wall,

I can drag a window through a wall using DragControls.
dragControls = new THREE.DragControls( objects, camera, renderer.domElement );
but I don’t know how to limit the drag so that the window cannot go beyond the wall.
, , - fiddle.