A mobile device, comprising: a housing including a first surface and a second surface facing an opposite direction from the first surface; a display configured to receive a touch input, the display exposed through at least a portion of the first surface; a communication circuit disposed in the housing; at least one processor disposed in the housing and electrically connected with the display and the communication circuit; and a memory disposed in the housing and electrically connected with the at least one processor, wherein the memory stores instructions executable to cause the at least one processor to: receive a user input for executing a desktop mode; while in the desktop mode and the mobile device is in communication with an external display device via the communication circuit; configure a display screen of the mobile device for displaying on the external display device; transmit data for rendering the display screen on the external display device to the external display device via the communication circuit; provide at least a portion of the display for use as a touch pad for controlling a pointing cursor provided over the display screen of the mobile device displayed on the external display device, and when the at least the portion of the display operates as the touch pad and an external pointing device is recognized, terminate operation of the display as the touch pad. a housing including a first surface and a second surface facing an opposite direction from the first surface; a display configured to receive a touch input, the display exposed through at least a portion of the first surface; a communication circuit disposed in the housing; at least one processor disposed in the housing and electrically connected with the display and the communication circuit; and a memory disposed in the housing and electrically connected with the at least one processor, wherein the memory stores instructions executable to cause the at least one processor to: receive a user input for executing a desktop mode; while in the desktop mode and the mobile device is in communication with an external display device via the communication circuit; configure a display screen of the mobile device for displaying on the external display device; transmit data for rendering the display screen on the external display device to the external display device via the communication circuit; provide at least a portion of the display for use as a touch pad for controlling a pointing cursor provided over the display screen of the mobile device displayed on the external display device, and when the at least the portion of the display operates as the touch pad and an external pointing device is recognized, terminate operation of the display as the touch pad. receive a user input for executing a desktop mode; while in the desktop mode and the mobile device is in communication with an external display device via the communication circuit; configure a display screen of the mobile device for displaying on the external display device; transmit data for rendering the display screen on the external display device to the external display device via the communication circuit; provide at least a portion of the display for use as a touch pad for controlling a pointing cursor provided over the display screen of the mobile device displayed on the external display device, and when the at least the portion of the display operates as the touch pad and an external pointing device is recognized, terminate operation of the display as the touch pad.