merging blocks into one unit without a visible docking line.

Hello everyone. Maybe someone will tell you how to make a similar merging of blocks by Masha, without a visible docking line as in the video. Thanks