I cannot understand in which folder I should place a custom plugin
For development you ideally follow the recommendation from the dev setup guide (
~/dev/indico/plugins/myplugin), for production you build a Python wheel from your dev system, upload it to your prod server (e.g. to /tmp) and then
pip install /path/to/your/plugin.whl to install it.