From the programming and functionality perspective that's fantastic. From the data security perspective that's a nightmare.
What do I mean by this? Anyone with a 'private' API, anyone who's business model involves DRM and anyone who thinks that a remote wipe of an unwilling device should be possible.
On the other hand, your example is wrong on macOS where apple mail and safari are sandboxed. So desktop operating systems are trying to catch up security wise and go beyond the traditional Unix security model.