mac: Add app.addRecentDocument API