Function OSSingleton.globalMenuAddItem
Add a new item with text "label" to global menu. Use "dock" menu to add item to the macOS dock icon menu. Note: This method is implemented on macOS.
Add a new item with text "label" to global menu. Use "dock" menu to add item to the macOS dock icon menu. Note: This method is implemented on macOS.