function populateToolboxSidesOption(
  folder,
  options,
  saveOptions,
  guiState,
  onChangeInternal,
) {
  const toolboxSides = {top: 0, bottom: 1, left: 2, right: 3};
  setTooltip(
    folder
      .add(options, 'toolboxPosition', toolboxSides)
      .name('toolboxPosition')
      .onChange((value) => {
        const side = Object.keys(toolboxSides).find(
          (key) => toolboxSides[key] == value,
        );
        saveOptions['horizontalLayout'] = side == 'top' || side == 'bottom';
        saveOptions['toolboxPosition'] =
          side == 'top' || side == 'left' ? 'start' : 'end';
        guiState.options['toolboxPosition'] = saveOptions['toolboxPosition'];
        guiState.options['horizontalLayout'] = saveOptions['horizontalLayout'];
        onChangeInternal();
      }),
    'The toolbox position.',
  );
}
Populate the toolbox sides option.
@param {dat.GUI} folder The dat.GUI folder.
@param {Blockly.Options} options Blockly options.
@param {Blockly.BlocklyOptions} saveOptions Saved Blockly options.
@param {Object} guiState GUI state.
@param {function():void} onChangeInternal Internal on change method.