How to recreate the merging of gelatin
To imitate the border, simply use a gradient as a mask between two Principled BSDF shaders.
As for the top material, glass with higher roughness works pretty well.