How to use minimize/maximize a borderless window

I am creating a text editor with C and SDL and I want to use a SDL_BORDERLESS_WINDOW but when i click on the task bar icon of the window (my os is windows) it doesnt do anything. (it does with a non-borderless window)