How to create a diptych - setting two images side by side?

I need to create a new image by combining two images by way of setting them aside each other in one image file – a diptych.
Is this possible in darktable?
If not, do you happen to know if it’s possible in Gimp or any other open source running on Linux (Mint)?