How to create in-wall objects Dynamically

I am making a feature such that it should be able to create In wall objects. These objects how ideally should work is that it creates a hole in the mesh and places the object where the hole has been set, similar to boolean in blender. How can we achieve or approach this ?