How to add a custom column to the backend product grid programmatically?

See how the standard ‘Magento_CatalogInventory’ module adds the «Quantity» (qty) column:

See also: