An electronic device (101, 201) comprising: a touchscreen; at least one processor (120, 210) electrically connected with the touchscreen; and a memory (130, 230) electrically connected with the processor (120, 210), wherein the memory (130, 230) stores instructions executed, when the electronic device (101, 201) is operated in a landscape mode, to enable the at least one processor (120, 210) to: display a first window (601, 701, 901, 1001, 1101, 1203), on a left-hand of the touch screen, for running a first application and a second window (602, 702, 903, 1002, 1102, 1205), on a right-hand of the touchscreen, for running a second application on the touchscreen, display a virtual keypad (603, 703, 905, 1003, 1201, 1207) on a portion of the first window (601, 701, 901, 1001, 1101, 1203) and a portion of the second window (602, 702, 903, 1002, 1102, 1205) corresponding to a first input to a text entry window of the second window (602, 702, 903, 1002, 1102, 1205), receive a drag input starting from a side of the virtual keypad (603, 703, 905, 1003, 1201, 1207) toward a boundary of the first window (601, 701, 901, 1001, 1101, 1203) and the second window (602, 702, 903, 1002, 1102, 1205), wherein a horizontal size of the virtual keypad (603, 703, 905, 1003, 1201, 1207) is reduced according to the drag input, identify a length of the drag input is greater than or equal to a designated threshold, based on the identification, display the virtual keypad (603, 703, 905, 1003, 1201, 1207) on a lower portion of the second window (602, 702, 903, 1002, 1102, 1205), wherein the horizontal size of the virtual keypad (603, 703, 905, 1003, 1201, 1207) displayed on the second window (602, 702, 903, 1002, 1102, 1205) and a horizontal size of the second window (602, 702, 903, 1002, 1102, 1205) are identical to each other. a touchscreen; at least one processor (120, 210) electrically connected with the touchscreen; and a memory (130, 230) electrically connected with the processor (120, 210), wherein the memory (130, 230) stores instructions executed, when the electronic device (101, 201) is operated in a landscape mode, to enable the at least one processor (120, 210) to: display a first window (601, 701, 901, 1001, 1101, 1203), on a left-hand of the touch screen, for running a first application and a second window (602, 702, 903, 1002, 1102, 1205), on a right-hand of the touchscreen, for running a second application on the touchscreen, display a virtual keypad (603, 703, 905, 1003, 1201, 1207) on a portion of the first window (601, 701, 901, 1001, 1101, 1203) and a portion of the second window (602, 702, 903, 1002, 1102, 1205) corresponding to a first input to a text entry window of the second window (602, 702, 903, 1002, 1102, 1205), receive a drag input starting from a side of the virtual keypad (603, 703, 905, 1003, 1201, 1207) toward a boundary of the first window (601, 701, 901, 1001, 1101, 1203) and the second window (602, 702, 903, 1002, 1102, 1205), wherein a horizontal size of the virtual keypad (603, 703, 905, 1003, 1201, 1207) is reduced according to the drag input, identify a length of the drag input is greater than or equal to a designated threshold, based on the identification, display the virtual keypad (603, 703, 905, 1003, 1201, 1207) on a lower portion of the second window (602, 702, 903, 1002, 1102, 1205), wherein the horizontal size of the virtual keypad (603, 703, 905, 1003, 1201, 1207) displayed on the second window (602, 702, 903, 1002, 1102, 1205) and a horizontal size of the second window (602, 702, 903, 1002, 1102, 1205) are identical to each other. display a first window (601, 701, 901, 1001, 1101, 1203), on a left-hand of the touch screen, for running a first application and a second window (602, 702, 903, 1002, 1102, 1205), on a right-hand of the touchscreen, for running a second application on the touchscreen, display a virtual keypad (603, 703, 905, 1003, 1201, 1207) on a portion of the first window (601, 701, 901, 1001, 1101, 1203) and a portion of the second window (602, 702, 903, 1002, 1102, 1205) corresponding to a first input to a text entry window of the second window (602, 702, 903, 1002, 1102, 1205), receive a drag input starting from a side of the virtual keypad (603, 703, 905, 1003, 1201, 1207) toward a boundary of the first window (601, 701, 901, 1001, 1101, 1203) and the second window (602, 702, 903, 1002, 1102, 1205), wherein a horizontal size of the virtual keypad (603, 703, 905, 1003, 1201, 1207) is reduced according to the drag input, identify a length of the drag input is greater than or equal to a designated threshold, based on the identification, display the virtual keypad (603, 703, 905, 1003, 1201, 1207) on a lower portion of the second window (602, 702, 903, 1002, 1102, 1205), wherein the horizontal size of the virtual keypad (603, 703, 905, 1003, 1201, 1207) displayed on the second window (602, 702, 903, 1002, 1102, 1205) and a horizontal size of the second window (602, 702, 903, 1002, 1102, 1205) are identical to each other.