A method, comprising: at an electronic device including a display generation component and one or more input devices: displaying, by the display generation component, a dock containing a plurality of application icons overlaid on a first user interface of a first application, wherein the plurality of application icons correspond to different applications installed on the electronic device; while displaying the dock overlaid on the first user interface of the first application, detecting a first input including detecting selection of a respective application icon in the dock; in response to detecting the first input and in accordance with a determination that the first input meets selection criteria: in accordance with a determination that the respective application icon corresponds to the first application, and that the first application is associated with multiple windows, displaying, via the display generation component, respective representations of the multiple windows of the first application; in accordance with a determination that the respective application icon corresponds to the first application, and that the first application currently is only associated with a single window, maintaining display of the first user interface of the first application; and in accordance with a determination that the respective application icon corresponds to a second application that is distinct from the first application, replacing display of the first user interface of the first application with display of a second user interface of the second application, irrespective of a number of windows that were associated with the second application at a time when the first input was detected. displaying, by the display generation component, a dock containing a plurality of application icons overlaid on a first user interface of a first application, wherein the plurality of application icons correspond to different applications installed on the electronic device; while displaying the dock overlaid on the first user interface of the first application, detecting a first input including detecting selection of a respective application icon in the dock; in response to detecting the first input and in accordance with a determination that the first input meets selection criteria: in accordance with a determination that the respective application icon corresponds to the first application, and that the first application is associated with multiple windows, displaying, via the display generation component, respective representations of the multiple windows of the first application; in accordance with a determination that the respective application icon corresponds to the first application, and that the first application currently is only associated with a single window, maintaining display of the first user interface of the first application; and in accordance with a determination that the respective application icon corresponds to a second application that is distinct from the first application, replacing display of the first user interface of the first application with display of a second user interface of the second application, irrespective of a number of windows that were associated with the second application at a time when the first input was detected. in accordance with a determination that the respective application icon corresponds to the first application, and that the first application is associated with multiple windows, displaying, via the display generation component, respective representations of the multiple windows of the first application; in accordance with a determination that the respective application icon corresponds to the first application, and that the first application currently is only associated with a single window, maintaining display of the first user interface of the first application; and in accordance with a determination that the respective application icon corresponds to a second application that is distinct from the first application, replacing display of the first user interface of the first application with display of a second user interface of the second application, irrespective of a number of windows that were associated with the second application at a time when the first input was detected.