Heh, while I was looking for at least some useful information, I came across this post - https://www.reddit.com/r/factorio/comments/14yli3t/trying_to_revamp_bobs_inserters_with_a_coesive_ui/#lightbox
An interesting idea, he placed the inserter settings inside the inserter interface window :) This is of course the ideal option, if you take the current inserter settings window and place it in the inserter interface, there is just enough space there :))))
Unfortunately, I did not find anything useful, although it seems that these settings are somewhere, but I could not find them in the game files. In general, the inserter has logistic and logical network windows opening downwards, one after the other. I assume that this logic is specified somewhere, like if "parent" = logical network interface, then anchor = defines.relative_gui_position.bottom, otherwise defines.relative_gui_position.right, or something like that.
I'm not good at this, I would like to help somehow, but alas...