Using QGIS 3.8, is there anyway to copy a layer group (and its subgroups) from project1.qgz to project2.qgz? I'm trying to write an script that adds a layer group (with several layers and group layers in it) present in a qgz project to other qgz projects.
I know I can drag and drop the group to another project, but I'd like to do this programmatically, as I need to repeat this process several times.