Add the windowed launch option
Close CS2. In your Steam Library, open Counter-Strike 2’s Properties. On the General tab, save the current Launch Options line in a note. Add -windowed separated by a space. Temporarily remove -fullscreen or -noborder if present so you can check for a bordered window.
Check the result in-game
Launch CS2 from the Library and check for a window border. If you need another app visible alongside the game, choose a window size in CS2 video settings. If you want the game to fill the display while switching between apps, choose fullscreen windowed in the game menu.
Restore your normal launch
Close the game, remove the -windowed option you added, and start it again. If CS2 retained windowed mode in video settings, select the display mode you want in-game. Restore any other launch options you still need from your saved line.