A medical device, system, and method for treating hip joint osteoarthritis by providing a hip joint surface is provided. The hip joint comprising an acetabulum, being a part of the pelvic bone, comprising an acetabulum surface, and a caput femur, being a part of the femoral bone, comprising a caput femur surface. The medical device comprises a first sealing member adapted to be placed in the hip joint for creating a hollow space together with; the acetabulum, or an artificial replacement therefor, and the caput femur, or an artificial replacement therefor. The first sealing member is further adapted to have a shape adapted to seal the hollow space for receiving, within the hollow space, a material for resurfacing at least one of the acetabulum surface and the caput femur surface.