Since the removal of GtkContainer, there is no longer the GtkSocket for “Container for widgets from other processes”.
What is the equivalent method to do so in Gtk4?
There is no replacement for embedding a widget from another process. It is an X11-only feature, and it is not compatible with the architecture of GTK4.