Extended Reality (XR) technology is proposed as a key enabler for the development of immersive applications, thus transforming the way users interact within digital environments. In communication networks, XR will be able to introduce immersive network functions with the potential to enhance the network experience. This paper proposes a comprehensive architectural framework designed to support the deployment of XR Functions (XRFs) within a Digital Twin Network (DTN) environment in order to provide immersive functions of any type, including control and management functions, that are not available in the original network. The proposal can be deployed in relevant fields where digital twins are promising, such as medical applications, surveillance systems, autonomous driving and space communications. The proposed architecture must consider the need for minimal hardware and software resources, along with a network topological configuration with the objective of providing a robust yet lightweight framework, allowing devices with limited computing power, such as smartphones and laptops, to benefit from the enhanced network functionalities provided in the Digital Twin Network, without affecting the original network (ON).