What is claimed is:1. An electronic device comprising:a housing including a front plate, a rear plate facing away from the front plate, and a side member surrounding a first space between the front plate and the rear plate;a display panel exposed to an exterior of the electronic device through the front plate and configured to detect a pen input using a magnetic field;a speaker structure disposed between the display panel and the rear plate, and including:a speaker housing encapsulating the speaker structure, the speaker housing including a first surface facing the display panel, a second surface facing in a direction opposite the display panel, and a side surface surrounding a second space between the first surface and the second surface;a yoke facing the first surface and disposed within the speaker housing; anda first shield structure made of a ferromagnetic material and disposed on the first surface such that the first shield structure is at least a part of the speaker housing.2. The electronic device of claim 1, wherein the first shield structure extends to at least a portion of the side surface of the speaker structure.3. The electronic device of claim 1, further comprising a middle plate disposed between the display panel and the speaker structure, the middle plate being made of a conductive material, and wherein the first shield structure is disposed between the middle plate and the yoke.4. The electronic device of claim 3, wherein the middle plate is formed as a single body with the side member or attached to the side member.5. The electronic device of claim 3, wherein the middle plate contains aluminum.6. The electronic device of claim 3, further comprising a second shield structure disposed between the display panel and the middle plate, the second shield structure being made of the ferromagnetic material, and wherein the second shield structure is disposed between the display panel and the first shield structure.7. The electronic device of claim 6, wherein the second shield structure is disposed at a location corresponding to a location of the first surface of the speaker structure and has an area larger than that of the first surface.8. The electronic device of claim 1, wherein the speaker structure further comprises:a diaphragm facing the rear plate and spaced apart from the yoke toward the rear plate; anda magnet disposed between the yoke and the diaphragm.9. The electronic device of claim 1, wherein the ferromagnetic material includes steel plate cold commercial (SPCC).10. The electronic device of claim 1, further comprising a speaker box that forms a third space to include the speaker structure and is connected to a through hole penetrating the side member to form an acoustic path.11. An electronic device comprising:a housing including a front plate, a rear plate facing away from the front plate, and a side member surrounding a first space between the front plate and the rear plate;a display panel exposed to an exterior of the electronic device through the front plate;a speaker box disposed in a second space between the display panel and the rear plate and connected to a through hole penetrating the side member to form an acoustic path; anda speaker structure disposed within the speaker box,wherein the speaker structure includes:a speaker housing encapsulating the speaker structure, the speaker housing including a first surface facing the display panel, a second surface facing a direction opposite the display panel, and a frame surrounding a third space between the first surface and the second surface;a yoke facing the first surface and disposed within the speaker housing;a diaphragm disposed on the second surface; anda first shield structure made of a ferromagnetic material and disposed on the first surface such that the first shield structure is at least a part of the speaker housing.12. The electronic device of claim 11, wherein the first shield structure extends to at least a portion of the frame of the speaker structure.13. The electronic device of claim 11, further comprising a middle plate disposed between the display panel and the speaker structure, the middle plate being made of a conductive material, and wherein the first shield structure is disposed between the middle plate and the yoke.14. The electronic device of claim 13, wherein the middle plate is formed as a single body with the side member or attached to the side member.15. The electronic device of claim 13, wherein the middle plate contains aluminum.16. The electronic device of claim 13, further comprising a second shield structure disposed between the display panel and the middle plate, the second shield structure being made of the ferromagnetic material, and wherein the second shield structure is disposed between the display panel and the first shield structure.17. The electronic device of claim 16, wherein the second shield structure is disposed at a location corresponding to a location of the first surface of the speaker structure and has an area larger than that of the first surface.18. The electronic device of claim 11, wherein the speaker structure further comprises a magnet disposed between the yoke and the diaphragm.19. The electronic device of claim 11, wherein the ferromagnetic material includes steel plate cold commercial (SPCC).