If you want to place the Search widget in a container of your choosing, you should specify the ID of the container (or a reference to the container element) in the container property of the widget's constructor. In this case, you would also not use view.ui.add.
const searchWidget = new Search({
view: view,
container: "myElementID",
allPlaceholder: "Enter Search Text",
//etc
});