The best way to completely remove the widgets panel in Windows 11 is to execute a command in the Command Prompt window. To do this, open the Start menu, type Command Prompt in the search bar, and ...
The lines that you see on some windows had a definite purpose in the past, but some are now just decorative in more modern window designs.