Choose the display mode you want
Open CS2 Video settings and find Display Mode. Select Windowed if you want a border and a window you can resize. Select Fullscreen Windowed if you want the picture to fill the screen while behaving like a window. Apply the change.
Check the result
In Windowed mode, pick a resolution that fits on your desktop. If you only need to switch to another app briefly, press Alt+Tab. It changes window focus without saving a different display mode.
If the game opens fullscreen again
Copy the launch options from CS2's Steam properties. If the line explicitly sets a display mode, remove that option for a test. Select Windowed in the game, exit through the menu and relaunch.