This is a small design detail in macOS and Windows that I’ve entirely missed in my decades of using it.
It turns out that when you have a menu item with a label that ends with ellipsis (…) it means the action will invoke a dialog, instead of being immediately executed!