magento2.3.0 – How to create a widget that displays products with the same name as the product on the page?

I am new to Magento and I need to create a widget that will dynamically take the name of the product on the page and will display all the products of the same name as this product, for example:

Product Name: shoe1

Show all products with shoe1 name

It's like normal Products catalogue with condition all categories AND simple check if the names are the same.

Currently, I do not know where to start. I've created a custom widget for banners, but that's too much for me, but you have to do it. I could send a request to the database and retrieve what I needed, but I do not know how to display the nuances nor add a map button and this gives the impression of being excessive. .

That's my first question, normally I do not do it but I need help. Pleas help me.