Search in TopBar (2019)

Hello there.
I have to put the search module in the top bar layout… no clue, No luck yet.
There´s a post from 2016 (Nav Search in top bar) but I guess if there have been some advances or changes in the technique used since then… Anyone can help? Anything is welcome!
Below a capture for better reference.