Proprietary software has not been a business moat for decades. The moats are their complements: hardware, networks and protocols (including humans), data and formats.
Apple post 2011 has never open sourced their UI toolkits, Google has never open sourced their search engine, etc.