getCustomDictionaryWords = async win => {
  return win.webContents.session.listWordsInSpellCheckerDictionary()
}
Returns a list of all words in the custom dictionary.

@param {BrowserWindow} win The browser window.
@returns {Promise<string[]>} List of custom dictionary words.