How collapsing a window works

Hello everyone, I am interested in how the process of collapsing different windows works on Windows, since I have a Mac. On Mac, once the collapse icon in the top right corner is clicked, the window becomes floating and can only be closed. Does it work the same for Windows? Pictures would be great, thank you