That is planned as an option.i.e the developer decides whether to offer that. Some don't like it because accidental clicks close the sheet/modal which can confuse non tech savvy users.
You can see this for yourself by using a heat-map of your users mouse movement and positioning. Note how many try to close with clicking the background.