While that's an interesting option for the developer, it doesn't appear to be something the end user can use on any random executable. (I'd LOVE to be wrong)
As with the Android thread above, this is encouraging news.
On macOS you can provide your own additional sandboxing rules to any random executable via sandbox-exec(1). (No, it's not user friendly.)