An electronic device comprising: a first display (160, 320); a memory configured to store an application (146, 770, 780); and a processor operatively coupled to the first display and the memory, wherein the processor is configured to: execute a first application and display a first user interface identified from the first application on the first display; in response to a connection between a second display different from the first display and the electronic device, output a first visual object which is displayed on the first user interface and is related to the second display in the first display, by using the first application; in response to a first input of a user related to the first visual object, identify a second user interface by using the first application and display the second user interface on the second display; characterised in the processor further configured to: while the second display is connected with the electronic device, execute a second application and display a third user interface identified from the second application on the second display; in response to a disconnection between the second display and the electronic device, maintain displaying of the first user interface on the first display and stop displaying of the third user interface on the second display; when the second display is connected with the electronic device again, display a second visual object corresponding to the second application in a partial region of the second display; and in response to a second input of the user related to the second visual object, display the third user interface on the second display. a first display (160, 320); a memory configured to store an application (146, 770, 780); and a processor operatively coupled to the first display and the memory, wherein the processor is configured to: execute a first application and display a first user interface identified from the first application on the first display; in response to a connection between a second display different from the first display and the electronic device, output a first visual object which is displayed on the first user interface and is related to the second display in the first display, by using the first application; in response to a first input of a user related to the first visual object, identify a second user interface by using the first application and display the second user interface on the second display; characterised in the processor further configured to: while the second display is connected with the electronic device, execute a second application and display a third user interface identified from the second application on the second display; in response to a disconnection between the second display and the electronic device, maintain displaying of the first user interface on the first display and stop displaying of the third user interface on the second display; when the second display is connected with the electronic device again, display a second visual object corresponding to the second application in a partial region of the second display; and in response to a second input of the user related to the second visual object, display the third user interface on the second display. execute a first application and display a first user interface identified from the first application on the first display; in response to a connection between a second display different from the first display and the electronic device, output a first visual object which is displayed on the first user interface and is related to the second display in the first display, by using the first application; in response to a first input of a user related to the first visual object, identify a second user interface by using the first application and display the second user interface on the second display; characterised in the processor further configured to: while the second display is connected with the electronic device, execute a second application and display a third user interface identified from the second application on the second display; in response to a disconnection between the second display and the electronic device, maintain displaying of the first user interface on the first display and stop displaying of the third user interface on the second display; when the second display is connected with the electronic device again, display a second visual object corresponding to the second application in a partial region of the second display; and in response to a second input of the user related to the second visual object, display the third user interface on the second display. while the second display is connected with the electronic device, execute a second application and display a third user interface identified from the second application on the second display; in response to a disconnection between the second display and the electronic device, maintain displaying of the first user interface on the first display and stop displaying of the third user interface on the second display; when the second display is connected with the electronic device again, display a second visual object corresponding to the second application in a partial region of the second display; and in response to a second input of the user related to the second visual object, display the third user interface on the second display.