If you are using Storyboard or Composer, you could use an overlay scene for this. But if not, simply make a rectangle the full size of the screen, make it the background of your box. You can set it to .isVisible = false and (this is important) .isHitTestable = true then add both a touch and a tap handler to it that basically ignores the events.
local function ignoreTouchs()
return true
end
local background = display.newRect(display.contentCenterX, display.contentCenterY, display.contentWidth, display.contentHeight)
background.isVisible = false
background.isHitTestable = true
background:addEventListener(“touch”, ignoreTouches)
background:addEventListener(“tap”, ignoreTouches)
or something like that.