Draw a rectangular prism with a square base such that the pyramid’s vertex lies on a line perpendicular to the base of the prism
through one of the four vertices of the square base, and the distance from the vertex to the base plane is equal to the side length of the square base.